#include "PacketIDFilter.h"

#include <packet/Packet.h>

PacketIDFilter::PacketIDFilter(std::string packetID) : 
	packetID(packetID) 
{
}

bool PacketIDFilter::accept(Packet * packet) {
	return packetID == packet->getPacketID();
}

std::string PacketIDFilter::toString() {
	return std::string("PacketIDFilter by id: ") + packetID;
}
